package java_flow_contral;

public class Demo05_while {
    public static void main(String[] args) {
        int i  = 0 ;
        int sum = 0;
        while (i<100 ){
            i++;
            sum +=i;
            System.out.println(i);
        }
        System.out.println(sum);
    }
}
